﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text;
using System.Threading;
using SmSvrServ.WorkClass;
using System.Windows.Forms;
using SmSvrServ.Server;
using SmSvrServ.Network;
using Silmoon;

namespace SmSvrServ
{
    public partial class SmSvrServClass : ServiceBase
    {
        GBC _g;
        public SmSvrServClass()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            Startup();
        }
        void Startup()
        {
            _g = new GBC(this);
            _g.Start();
        }

        protected override void OnStop()
        {
            _g.ExitServiceProc();
        }
    }
}